import Vue from 'vue';
import VueRouter from 'vue-router';
import index from '../views/index.vue'
import login from '../views/account/login.vue';
Vue.use(VueRouter)

const routes = [
	// 主页
	{
		path: '/',
		name: 'index',
		component: index
	},
	// 登录
	{
		path: '/account/login',
		name: 'login',
		component: login
	},
	// 忘记密码
	{
		path: '/account/forgot',
		name: 'forgot',
		component: () => import('../views/account/forgot.vue')
	},
	// 注册账号
	{
		path: '/account/register',
		name: 'register',
		component: () => import('../views/account/register.vue')
	},
		// 媒体图片
	{
		path: '/media/image',
		name: 'media_image',
		component: () => import('../views/media/image.vue')
	},
	// 音乐
	{
		path: '/media/music',
		name: 'media_music',
		component: () => import('../views/media/music.vue')
	},
	// 媒体视频
	{
		path: '/media/video',
		name: 'media_video',
		component: () => import('../views/media/video.vue')
	},
	// 媒体视频
	{
		path: '/user_center/index',
		name: 'user_center_index',
		component: () => import('../views/user_center/index.vue')
	},
	// 文章路由
	{
		path: '/article/list',
		name: 'article_list',
		component: () => import('../views/article/list.vue')
	},
	{
		path: '/article/details',
		name: 'article_details',
		component: () => import('../views/article/details.vue')
	},
	// 浏览网站
	// 收藏路由
	{
		path: '/user/collect',
		name: 'collect_list',
		component: () => import('../views/user/collect.vue')
	},

	// 论坛路由
	{
		path: '/forum/list',
		name: 'forum_list',
		component: () => import('../views/forum/list.vue')
	},

	{
		path: '/forum/details',
		name: 'forum_details',
		component: () => import('../views/forum/details.vue')
	},
	{
		path: '/forum/edit',
		name: 'forum_edit',
		component: () => import('../views/forum/edit.vue')
	},
	{
		path: '/forum/table',
		name: 'forum_table',
		component: () => import('../views/forum/table.vue')
	},
	{
		path: '/forum/view',
		name: 'forum_view',
		component: () => import('../views/forum/view.vue')
	},

	{
		path: '/comment/table',
		name: 'comment_table',
		component: () => import('../views/comment/table.vue')
	},
	{
		path: '/comment/view',
		name: 'comment_view',
		component: () => import('../views/comment/view.vue')
	},

	



	// 公告路由
	{
		path: '/notice/list',
		name: 'notice_list',
		component: () => import('../views/notice/list.vue')
	},
	{
		path: '/notice/details',
		name: 'notice_details',
		component: () => import('../views/notice/details.vue')
	},
	// 学生用户表格路由
	{
		path: '/student_users/table',
		name: '/student_users_table',
		component: () => import('../views/student_users/table.vue')
	},
	// 学生用户详情路由
	{
		path: '/student_users/view',
		name: '/student_users_view',
		component: () => import('../views/student_users/view.vue')
	},
	
	
		
		
		
	// 教师用户表格路由
	{
		path: '/teacher_users/table',
		name: '/teacher_users_table',
		component: () => import('../views/teacher_users/table.vue')
	},
	// 教师用户详情路由
	{
		path: '/teacher_users/view',
		name: '/teacher_users_view',
		component: () => import('../views/teacher_users/view.vue')
	},
	
	
		
		
		
	// 社团信息表格路由
	{
		path: '/club_information/table',
		name: '/club_information_table',
		component: () => import('../views/club_information/table.vue')
	},
	// 社团信息详情路由
	{
		path: '/club_information/view',
		name: '/club_information_view',
		component: () => import('../views/club_information/view.vue')
	},
	
		// 社团信息列表路由
	{
		path: '/club_information/list',
		name: '/club_information_list',
		component: () => import('../views/club_information/list.vue')
	},
	
		// 社团信息详情路由
	{
		path: '/club_information/details',
		name: '/club_information_details',
		component: () => import('../views/club_information/details.vue')
	},
		
		
		
	// 社团分类表格路由
	{
		path: '/classification_of_clubs/table',
		name: '/classification_of_clubs_table',
		component: () => import('../views/classification_of_clubs/table.vue')
	},
	// 社团分类详情路由
	{
		path: '/classification_of_clubs/view',
		name: '/classification_of_clubs_view',
		component: () => import('../views/classification_of_clubs/view.vue')
	},
	
	
		
		
		
	// 社团报名表格路由
	{
		path: '/club_registration/table',
		name: '/club_registration_table',
		component: () => import('../views/club_registration/table.vue')
	},
	// 社团报名详情路由
	{
		path: '/club_registration/view',
		name: '/club_registration_view',
		component: () => import('../views/club_registration/view.vue')
	},
		// 社团报名添加路由
	{
		path: '/club_registration/edit',
		name: '/club_registration_edit',
		component: () => import('../views/club_registration/edit.vue')
	},
	
	
		
		
		
	// 通知提醒表格路由
	{
		path: '/notification_reminder/table',
		name: '/notification_reminder_table',
		component: () => import('../views/notification_reminder/table.vue')
	},
	// 通知提醒详情路由
	{
		path: '/notification_reminder/view',
		name: '/notification_reminder_view',
		component: () => import('../views/notification_reminder/view.vue')
	},
	
	
		
		
		
	// 选课信息表格路由
	{
		path: '/course_selection_information/table',
		name: '/course_selection_information_table',
		component: () => import('../views/course_selection_information/table.vue')
	},
	// 选课信息详情路由
	{
		path: '/course_selection_information/view',
		name: '/course_selection_information_view',
		component: () => import('../views/course_selection_information/view.vue')
	},
	
		// 选课信息列表路由
	{
		path: '/course_selection_information/list',
		name: '/course_selection_information_list',
		component: () => import('../views/course_selection_information/list.vue')
	},
	
		// 选课信息详情路由
	{
		path: '/course_selection_information/details',
		name: '/course_selection_information_details',
		component: () => import('../views/course_selection_information/details.vue')
	},
		
		
		
	// 选课记录表格路由
	{
		path: '/course_selection_record/table',
		name: '/course_selection_record_table',
		component: () => import('../views/course_selection_record/table.vue')
	},
	// 选课记录详情路由
	{
		path: '/course_selection_record/view',
		name: '/course_selection_record_view',
		component: () => import('../views/course_selection_record/view.vue')
	},
		// 选课记录添加路由
	{
		path: '/course_selection_record/edit',
		name: '/course_selection_record_edit',
		component: () => import('../views/course_selection_record/edit.vue')
	},
	
	
		
		
		
	// 选课取消表格路由
	{
		path: '/cancel_course_selection/table',
		name: '/cancel_course_selection_table',
		component: () => import('../views/cancel_course_selection/table.vue')
	},
	// 选课取消详情路由
	{
		path: '/cancel_course_selection/view',
		name: '/cancel_course_selection_view',
		component: () => import('../views/cancel_course_selection/view.vue')
	},
	
	
		
		
		
	// 社团活动表格路由
	{
		path: '/club_activities/table',
		name: '/club_activities_table',
		component: () => import('../views/club_activities/table.vue')
	},
	// 社团活动详情路由
	{
		path: '/club_activities/view',
		name: '/club_activities_view',
		component: () => import('../views/club_activities/view.vue')
	},
	
		// 社团活动列表路由
	{
		path: '/club_activities/list',
		name: '/club_activities_list',
		component: () => import('../views/club_activities/list.vue')
	},
	
		// 社团活动详情路由
	{
		path: '/club_activities/details',
		name: '/club_activities_details',
		component: () => import('../views/club_activities/details.vue')
	},
		
		
		
	// 活动报名表格路由
	{
		path: '/event_registration/table',
		name: '/event_registration_table',
		component: () => import('../views/event_registration/table.vue')
	},
	// 活动报名详情路由
	{
		path: '/event_registration/view',
		name: '/event_registration_view',
		component: () => import('../views/event_registration/view.vue')
	},
		// 活动报名添加路由
	{
		path: '/event_registration/edit',
		name: '/event_registration_edit',
		component: () => import('../views/event_registration/edit.vue')
	},
	
	
		
		
		
	// 活动反馈表格路由
	{
		path: '/activity_feedback/table',
		name: '/activity_feedback_table',
		component: () => import('../views/activity_feedback/table.vue')
	},
	// 活动反馈详情路由
	{
		path: '/activity_feedback/view',
		name: '/activity_feedback_view',
		component: () => import('../views/activity_feedback/view.vue')
	},
	
	
		
		
		
	// 活动取消表格路由
	{
		path: '/event_cancellation/table',
		name: '/event_cancellation_table',
		component: () => import('../views/event_cancellation/table.vue')
	},
	// 活动取消详情路由
	{
		path: '/event_cancellation/view',
		name: '/event_cancellation_view',
		component: () => import('../views/event_cancellation/view.vue')
	},
	
	
		
		
		

	// 用户路由
	{
		path: '/user/index',
		name: 'user_index',
		component: () => import('../views/user/index.vue')
	},
	// 基本信息
	{
		path: '/user/info',
		name: 'user_info',
		component: () => import('../views/user/info.vue')
	},
	// 找回密码
	{
		path: '/user/password',
		name: 'user_password',
		component: () => import('../views/user/password.vue')
	},

	// 搜索
	{
		path: '/search',
		name: 'search',
		component: () => import('../views/search/index.vue')
	},
	// 局部搜索
	{
		path: '/search/details',
		name: 'search_details',
		component: () => import('../views/search/details.vue')
	}
]

const router = new VueRouter({
	mode: 'hash',
	base: process.env.BASE_URL,
	routes
})

router.afterEach((to, from, next) => {
	let title = "中学生社团课选课系统-home";
	document.title = title;
	document.logo = "中学生社团课选课系统"
})

export default router
